<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 1、fn必须在全局
        function fn3 (age) {
            console.log(age)
        }
        function fn4 (age) {
            console.log(age)
        }
        // cb  callback 回调函数
        // 跟后端商量好回调函数参数名称叫cb
        // script标签发的请求一定都是get
    </script>
    <script src="http://localhost/day30-ajax-promise/code/03.php?cb=fn3"></script>
    <script src="http://localhost/day30-ajax-promise/code/03.php?cb=fn4"></script>
</body>
</html>